package com.example.zhunongzonghe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("zn_district")
public class ZnDistrict implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 所属地区表
     */
    @TableId(value = "district_id", type = IdType.AUTO)
    private Integer districtId;

    /**
     * 省份
     */
    @TableField("district_province")
    private String districtProvince;

    /**
     * 市
     */
    @TableField("district_city")
    private String districtCity;

    /**
     * 县
     */
    @TableField("district_county")
    private String districtCounty;


}
